package day0318.enum_;

import day0318.enum_.Color;

/**
 * @Author Stringzhua
 * @Date 2024/3/18 15:00
 * description:
 */
public class enum_Color {
    public static void main(String[] args) {
//        String color="";
        Color color=Color.GREEN;
//        WeekDays color=WeekDays.SUN;//Operator '==' cannot be applied to 'day0318.Color', 'day0318.WeekDays'
        if(Color.BLUE==color||Color.RED==color||Color.GREEN==color){//Operator '==' cannot be applied to 'day0318.Color', 'java.lang.String'
            System.out.println("是三原色");
        }else{
            System.out.println("不是三原色");
        }
    }
}
